
                 #####  ######   #####
                #     # #     # #     #
                #       #     # #
                 #####  ######  #
                      # #   #   #
                #     # #    #  #     #
                 #####  #     #  #####

CC = gcc

AR_FLAGS = -r

SRC_DIR = src
LIB_DIR = lib

LIB_SRCS = \
       ConfigurationHandler.c \
       FunctionTracing.c \
       ipcops.c \
       netops.c \
       rtops.c \
       timeops.c
       
LIB_OBJS = ${LIB_SRCS:.c=.o}




lib:	$(LIB_OBJS)
	$(AR) $(AR_FLAGS) ../$(LIB_DIR)/libSimplePatternOps.a  $(LIB_OBJS)

extract_coverage_data: lib
	gcov *.c

clean:
	-rm *.o
	-rm *.gcno
	-rm *.gcov
	-rm *.gcda
	-rm ../$(LIB_DIR)/*.a

.c.o:
	$(CC) $(CFLAGS) $(CFLAGS_GCOV) -Iinclude -c -o $@ $<

